home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-05 / encomp.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1992-01-07  |  2KB  |  91 lines

  1. @echo off
  2. cls
  3. echo 
  4. echo                   Single User ENCOMPASS Software Installation
  5. echo                   -------------------------------------------
  6. if $%1 == $ goto prompt
  7. if %1 == c goto cdrive
  8. if %1 == C goto cdrive
  9. if %1 == c: goto cdrive
  10. if %1 == C: goto cdrive
  11. if %1 == d goto ddrive
  12. if %1 == D goto ddrive
  13. if %1 == d: goto ddrive
  14. if %1 == D: goto ddrive
  15. rem
  16. rem Prompt for batch file syntax
  17. rem
  18. :prompt
  19. echo 
  20. echo 
  21. echo The INSTALL procedure can install ENCOMPASS on drive C or D.
  22. echo - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  23. echo Use one of the following: install c  or install d
  24. echo - - - - - - - - - - - - - - - - - - - - - - - - -
  25. goto exit
  26. rem
  27. rem C drive installation
  28. rem
  29. :cdrive
  30. echo Installing on drive C.
  31. echo Make sure ENCOMPASS diskette is in drive A.
  32. echo -------------------------------------------
  33. pause
  34. echo 
  35. echo Creating directory.... C:\ENCOMPASS
  36. echo Note: If you are re-installing ignore directory error messages.
  37. c:
  38. md \encompas
  39. cd \encompas
  40. echo 
  41. echo Copying files...
  42. copy a:*.* > nul
  43. copy menu.bat \ > nul
  44. del menu.bat > nul
  45. del menud.bat > nul
  46. copy menu.lin \ > nul
  47. del menu.lin > nul
  48. cd \
  49. copy autoexec.bat + menu.lin autoexec.bat > nul
  50. del menu.lin > nul
  51. cls
  52. echo 
  53. echo Single User ENCOMPASS Installed.  Type 'menu' to load ENCOMPASS.
  54. echo Please print out README.DOC for detailed usage information.
  55. echo 
  56. pause
  57. goto exit
  58. rem
  59. rem D drive installation
  60. rem
  61. :ddrive
  62. echo Installing on drive D.
  63. echo Make sure ENCOMPASS diskette is in drive A.
  64. echo -------------------------------------------
  65. pause
  66. echo 
  67. echo Creating directory.... D:\ENCOMPASS
  68. echo Note: If you are re-installing ignore directory error messages.
  69. d:
  70. md \encompas
  71. cd \encompas
  72. echo 
  73. echo Copying files...
  74. copy a:*.* > nul
  75. copy menud.bat c:\menu.bat > nul
  76. del menu.bat > nul
  77. del menud.bat > nul
  78. copy menu.lin c:\ > nul
  79. del menu.lin > nul
  80. c:
  81. cd \
  82. copy autoexec.bat + menu.lin autoexec.bat > nul
  83. del menu.lin > nul
  84. cls
  85. echo 
  86. echo Single User ENCOMPASS Installed.  Type 'menu' to load ENCOMPASS.
  87. echo Please print out README.DOC for detailed usage information.
  88. echo 
  89. pause
  90. :exit
  91.